<?php include PATH_VIEWS . 'common/header.php'; ?>
<div class="main">
    <?php include PATH_VIEWS . 'common/left.php'; ?>
    <div class="main_right welcome_right" id="slide">
        <dl>
            <dt><h3>查询新闻列表信息 <span>[关闭/展开]</span></h3></dt>
            <dd class="border">
                <form name="form1" method="get" action="<?php echo URL; ?>">
                    <input type="hidden" name="C" value="<?php echo trim($_GET['C']); ?>" />
                    <input type="hidden" name="A" value="<?php echo trim($_GET['A']); ?>" />
                    <strong>请输入查询关键字：</strong>
                    <input type="hidden" name="way" value="<?php echo $this->way; ?>" />
                    <input id="searchVal" type="text" name="keywords" value="<?php echo isset($keywords) ? $keywords : ''; ?>" />
                    <input type="submit" class="submit" id="search" name="ok" value="搜索" />
                    <strong for="keywords">要求至少输入两个字符</strong>
                </form>            
            </dd>
        </dl>
        <dl>
            <dt>
            <h4>后台菜单列表</h4>
            </dt>
            <dd>
                <table class="system_envir chuli">                  
                    <tr>
                        <th>序号</th>
                        <th>新闻分类</th>
                        <th>文章标题</th>
                        <th>发布时间</th>
                        <th>作者</th>
                        <th>关键字</th>
                        <th>文章来源</th>
                        <th>审核</th>
                        <th>排序</th>
                        <th>操作</th>
                    </tr>
                    <?php foreach ($info_list as $key => $ls) { ?>
                        <tr>
                            <td><?php echo ($key + 1); ?></td>
                            <td><?php echo $catagory[$ls['Fcategory']]; ?></td>
                            <td><?php echo $ls['Ftitle']; ?></td>
                            <td><?php echo date('Y-m-d H:i:s', $ls['FaddTime']); ?></td>
                            <td><?php echo $ls['Fname']; ?></td>
                            <td><?php echo $ls['Fkeyword']; ?></td>
                            <td><?php echo $ls['Fsource']; ?></td>
                            <td><?php echo ($ls['Fstatus'] == 1) ? '审核通过' : '审核不通过'; ?></td>
                            <td><?php echo $ls['Fsort']; ?></td>
                            <td>
                                <a href="index.php?C=<?php echo trim($_GET['C']); ?>&A=<?php echo trim($_GET['A']); ?>&way=E&primarykey=<?php echo $ls['Fid']; ?>&page=<?php echo $page; ?>">修改</a>
                                <a href="index.php?C=<?php echo trim($_GET['C']); ?>&A=<?php echo trim($_GET['A']); ?>&way=D&primarykey=<?php echo $ls['Fid']; ?>&page=<?php echo $page; ?>" onclick="return getConfirm()">删除</a>
                            </td>
                        </tr>
                    <?php } ?>
                    <tr>
                    <link type="text/css" href="<?php echo HTTP_UI; ?>css/pager.css" rel="stylesheet"/>
                    <td colspan="10"><?php echo $pagerlink; ?></td>
                    </tr>
                </table>
            </dd>
        </dl>
    </div>
</div>
<?php include PATH_VIEWS . 'common/footer.php'; ?>